package ch2;

import java.util.Scanner;

public class ZcMj {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        Yuan a=new Yuan();
        System.out.println("请输入圆的半径：");
        a.r=input.nextDouble();
        System.out.println("圆的周长是："+a.zhouchang()+"\n圆的面积是："+a.mianji());
    }
}
